#include "savespisok.h"

Savespisok::Savespisok(MainWindow* m, int c){
    M=m;
    context=c;
}

void Savespisok::run()
{
    if (context==SAVESPISOK){
        M->saveSpisokWithOutParam();
        M->saveparam();
    }
    if (context==OPENSPISOK){
        M->adddir_continue(M->ff_file);
    }


    fin();

}


Savespisok::~Savespisok(){
    M->treadsavespisok=NULL;
}
